﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using iTelluro.Explorer.Application.MainBoundContext.DTO;
using iTelluro.Explorer.Domain.MainBoundedContext.Entities;
using iTelluro.Explorer.Domain.Seedwork;


namespace iTelluro.Explorer.Application.MainBoundContext
{
    public interface ImeteorologicalAppService
    {
        /// <summary>
        /// 新增一条Metalert记录
        /// </summary>
        /// <param name="dto">Metalert实体</param>
        /// <returns>是否新增成功</returns>
        bool Add(MetalertDTO dto);

        /// <summary>
        /// 根据主键删除一条Metalert记录
        /// </summary>
        /// <param name="guid">Metalert主键值</param>
        /// <returns>是否删除成功</returns>
        bool Remove(string guid);

        /// <summary>
        /// 更新一条Metalert记录
        /// </summary>
        /// <param name="dto">Metalert实体</param>
        /// <returns>是否更新成功</returns>
        bool Update(MetalertDTO dto);

        /// <summary>
        /// 根据Metalert主键获取一条记录
        /// </summary>
        /// <param name="guid">Metalert主键值</param>
        /// <returns>根据主键查询到的Metalert记录</returns>
        MetalertDTO Get(string guid);

        /// <summary>
        /// 查询所有Metalert记录
        /// </summary>
        /// <returns>Metalert所有记录集合</returns>
        List<MetalertDTO> GetAll();

        //获取某一时间段内的气象预警信息

        List<MetalertDTO> FindWarningData(string Issuetime);

    
    }
}
